﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ObligatorioBD
{
    public partial class frmProgress : Form
    {
        public frmProgress(string iniText, int totalProgress)
        {
            InitializeComponent();
            this.progBar.Maximum = totalProgress;
            this.lblProgress.Text = iniText;
            this.progBar.Step = 1;
        }

        private void frmProgress_Load(object sender, EventArgs e)
        {

        }
        
        public void Advance(string text)
        {
            this.lblProgress.Text = text;
            this.progBar.Step += 1;
        }
    }
}
